import * as constant from "./constant"

export const setAuth = (user, token) => {
    localStorage.setItem(constant.USER_INFO, user)
    localStorage.setItem(constant.USER_TOKEN, token)
};

export const removeAuth = () => {
    localStorage.removeItem(constant.USER_INFO)
    localStorage.removeItem(constant.USER_TOKEN)
};